// 操作数据库
let db=require('../db/index')

exports.get_all=(req,res)=>{
    var sql='select * from tian'
    db.query(sql,[
        req.query.id,
        req.query.date,
        req.query.typeId,
        req.query.number,
        req.query.value
    ],(err,data)=>{
        if(err){
            return res.send('错误:'+err.message)
        }
        res.send(data)
    })
}
